package com.ssm.subject.domain.convert;

import com.ssm.subject.domain.bo.SubjectLabelBO;
import com.ssm.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper //mapstruct包下的mapper注解
public interface SubjectLabelBOConverter {
    SubjectLabelBOConverter INSTANCE = Mappers.getMapper(SubjectLabelBOConverter.class);

    //LabelBO 转 Label
    SubjectLabel SubjectLabelBoTOSubjectLabel(SubjectLabelBO subjectLabelBO);

    //Label 转 Bo
    SubjectLabelBO SubjectLabelToBo(SubjectLabel subjectLabel);

    //LabelListToLabelBoList
    List<SubjectLabelBO> LabelListToLabelBoList(List<SubjectLabel> subjectLabels);
}

